<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      GDM-3.34.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;33.&nbsp;GNOME Libraries and Desktop
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="gnome-session.html" title=
          "gnome-session-3.34.2">Prev</a>
          <p>
            gnome-session-3.34.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="gnome-user-docs.html" title=
          "gnome-user-docs-3.34.1">Next</a>
          <p>
            gnome-user-docs-3.34.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="core.html" title=
          "Chapter&nbsp;33.&nbsp;GNOME Libraries and Desktop">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="gdm" name="gdm"></a>GDM-3.34.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to GDM
        </h2>
        <p>
          <span class="application">GDM</span> is a system service that is
          responsible for providing graphical logins and managing local and
          remote displays.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://ftp.gnome.org/pub/gnome/sources/gdm/3.34/gdm-3.34.1.tar.xz">
                http://ftp.gnome.org/pub/gnome/sources/gdm/3.34/gdm-3.34.1.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.gnome.org/pub/gnome/sources/gdm/3.34/gdm-3.34.1.tar.xz">
                ftp://ftp.gnome.org/pub/gnome/sources/gdm/3.34/gdm-3.34.1.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 65d1fd4bb85e8b133d1cbffb80ecf62e
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.2 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 43 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.2 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          GDM Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../general/accountsservice.html" title=
          "AccountsService-0.6.55">AccountsService-0.6.55</a>, <a class=
          "xref" href="../x/gtk3.html" title="GTK+-3.24.13">GTK+-3.24.13</a>,
          <a class="xref" href="../general/iso-codes.html" title=
          "ISO Codes-4.4">ISO Codes-4.4</a>, <a class="xref" href=
          "../pst/itstool.html" title="itstool-2.0.6">itstool-2.0.6</a>,
          <a class="xref" href="../general/keyutils.html" title=
          "keyutils-1.6.1">keyutils-1.6.1</a>, <a class="xref" href=
          "../multimedia/libcanberra.html" title=
          "libcanberra-0.30">libcanberra-0.30</a>, <a class="xref" href=
          "../general/libdaemon.html" title=
          "libdaemon-0.14">libdaemon-0.14</a>, and <a class="xref" href=
          "../postlfs/linux-pam.html" title=
          "Linux-PAM-1.3.1">Linux-PAM-1.3.1</a>
        </p>
        <h4>
          Runtime Dependencies
        </h4>
        <p class="required">
          <a class="xref" href="gnome-session.html" title=
          "gnome-session-3.34.2">gnome-session-3.34.2</a>, <a class="xref"
          href="gnome-shell.html" title=
          "gnome-shell-3.34.4">gnome-shell-3.34.4</a>, and <span class=
          "phrase"><a class="xref" href="../general/elogind.html" title=
          "elogind-243.4">elogind-243.4</a></span>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/gdm">http://wiki.linuxfromscratch.org/blfs/wiki/gdm</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of GDM
        </h2>
        <p>
          It is recommended to have a dedicated user and group to take
          control of the <span class="command"><strong>gdm</strong></span>
          daemon after it is started. Issue the following commands as the
          <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">groupadd -g 21 gdm &amp;&amp;
useradd -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 \
        -g gdm -s /bin/false gdm &amp;&amp;
passwd -ql gdm</kbd>
</pre>
        <p>
          Install <span class="application">GDM</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">sed 's@systemd@elogind@' -i data/pam-lfs/gdm-launch-environment.pam &amp;&amp;

./configure --prefix=/usr         \
            --sysconfdir=/etc     \
            --localstatedir=/var  \
            --without-plymouth    \
            --disable-static      \
            --enable-gdm-xsession \
            --with-systemdsystemunitdir=no \
            --with-pam-mod-dir=/lib/security &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a usable test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <code class="option">--with-initial-vt=7</code>: Use this switch to
          make <span class="application">GDM</span> start on VT7 instead of
          the first free VT.
        </p>
        <p>
          <em class="parameter"><code>--without-plymouth</code></em>: GDM now
          explicitly requires plymouth to be installed. Use this switch to
          disable this dependency.
        </p>
        <p>
          <code class="option">--with-default-pam-config=lfs</code>: Use this
          switch if you did not create the <code class=
          "filename">/etc/lfs-release</code> file or distribution auto
          detection will fail and you will be unable to use <span class=
          "application">GDM</span>.
        </p>
        <p>
          <em class="parameter"><code>--enable-gdm-xsession</code></em>: This
          enables the installation of the <span class=
          "application">GDM</span> Xsession file.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring GDM
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="gdm-config" name="gdm-config"></a>
          </h3>
          <h4 class="title">
            <a id="gdm-config" name="gdm-config"></a>Config Files
          </h4>
          <p>
            <code class="filename">/etc/gdm/custom.conf</code>
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm45779243466256" name=
            "idm45779243466256"></a>Configuration Information
          </h4>
          <p>
            The GDM daemon is configured using the <code class=
            "filename">/etc/gdm/custom.conf</code> file. Default values are
            stored in GSettings in the <code class=
            "filename">gdm.schemas</code> file. It is recommended that
            end-users modify the <code class=
            "filename">/etc/gdm/custom.conf</code> file because the schemas
            file may be overwritten when the user updates their system to
            have a newer version of <span class="application">GDM</span>.
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="gdm-init" name="gdm-init"></a>
          </h3>
          <h4 class="title">
            <a id="gdm-init" name="gdm-init"></a><span class="phrase">Boot
            Script</span>
          </h4>
          <p>
            To start the <span class="command"><strong>gdm</strong></span>
            automatically when the system is booted, install the <code class=
            "filename">/etc/rc.d/init.d/gdm</code> init script included in
            the <a class="xref" href="../introduction/bootscripts.html"
            title="BLFS Boot Scripts">blfs-bootscripts-20191204</a> package
            and set the default runlevel to 5 (graphical login) as the
            <code class="systemitem">root</code> user:
          </p>
          <pre class="root">
<kbd class="command">make install-gdm</kbd>
</pre>
          <p>
            In order to permanently set the default runlevel to 5, starting
            the <span class="command"><strong>gdm</strong></span> greeter
            screen automatically, you can modify <code class=
            "filename">/etc/inittab</code>. As the <code class=
            "systemitem">root</code> user:
          </p>
          <pre class="root">
<kbd class="command">sed /initdefault/s/3/5/ -i /etc/inittab</kbd>
</pre>
          <p>
            You should also disable default elogind power management:
          </p>
          <pre class="root">
<kbd class="command">cat &gt;&gt; /etc/elogind/logind.conf &lt;&lt; "EOF"
<code class="literal">AllowSuspend=no
AllowHibernation=no</code>
EOF</kbd>
</pre>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">gdm, gdmflexiserver, and
              gdm-screenshot</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libgdm.so and pam_gdm.so (PAM
              Module)</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/etc/gdm, /usr/include/gdm,
              /usr/share/gdm, /usr/share/help/*/gdm, /var/cache/gdm,
              /var/lib/gdm, /var/log/gdm, and /var/run/gdm</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="gdm-prog" name="gdm-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>gdm</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a login prompt for <span class=
                    "application">GNOME</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gdm-screenshot" name=
                    "gdm-screenshot"></a><span class="term"><span class=
                    "command"><strong>gdm-screenshot</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a screenshot tool for <span class=
                    "application">GDM</span>.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-26 22:00:52 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="gnome-session.html" title=
          "gnome-session-3.34.2">Prev</a>
          <p>
            gnome-session-3.34.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="gnome-user-docs.html" title=
          "gnome-user-docs-3.34.1">Next</a>
          <p>
            gnome-user-docs-3.34.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="core.html" title=
          "Chapter&nbsp;33.&nbsp;GNOME Libraries and Desktop">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
